package com.myw.mail.define;

import com.ruoyi.common.utils.uuid.IdUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Author: myw
 * @CreateTime: 2025-07-10
 * @UpdateTime: 2025-07-10
 * @Description: 自定义ID生成器
 * @Version: 1.0
 */
@Slf4j
@Component
public class CustomIdGenerator {

    private final AtomicLong al = new AtomicLong(1);

    public Long nextId(Object entity) {
        return null;
    }

    /**
     * String 类型id生成
     *
     * @param entity
     * @return
     */
    public String nextUUID(Object entity) {
        //
        return IdUtils.randomUUID();
    }

}
